import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'
import { ReportSettingComponent } from './setting/setting.component'
import { ReportConfigComponent } from './config/config.component'
import { ReportReleasesComponent } from './releases/releases.component'
import { ReportDownloadComponent } from './download/download.component'

const routes: Routes = [
  { path: 'setting', component: ReportSettingComponent },
  { path: 'config', component: ReportConfigComponent },
  { path: 'releases', component: ReportReleasesComponent },
  {
    path: 'download',
    redirectTo: 'download/list',
    pathMatch: 'full',
  },
  {
    path: 'download/list',
    component: ReportDownloadComponent,
    data: {
      titleI18n: 'MENU.REPORT.DOWNLOAD',
    }
  }
]

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ReportRoutingModule {}
